# -*- coding: utf-8 -*-
# @Time    : 2022/3/21 14:01
# @Author  : Zhy
# @Email   : mat_wu@163.com
# @File    : default.py
# @Software: PyCharm

class Config(object):
    SQLALCHEMY_DATABASE_URI = 'mysql://root:5211314cxf@127.0.0.1:3306/test'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SQLALCHEMY_ECHO = False
    JWT_SECRET = 'LSJFLSJFLWE23O9UDFNSDF'
    MAIL_SERVER = 'smtp.163.com'  # 电子邮件服务器的主机名或IP地址
    MAIL_PORT = '25'  # 电子邮件服务器的端口
    MAIL_USE_TLS = True  # 启用传输层安全
    MAIL_USERNAME = 'zhy2608347593@163.com'
    MAIL_PASSWORD = 'NLIDSGEEMJNZTMHX'
    BROKER_URL = 'redis://:123456@127.0.0.1:6379/0'
    CELERY_RESULT_BACKEND = 'redis://:123456@127.0.0.1:6379/0'

    CACHE_TYPE = 'redis'
    CACHE_REDIS_HOST = '127.0.0.1'
    CACHE_REDIS_PORT = '6379'
    CACHE_REDIS_DB = '1'
    CACHE_REDIS_PASSWORD = '123456'
